<%@ page language="java" pageEncoding="UTF-8"%>
<pg:pager items="${Page.totalSize}"
	maxPageItems="${Page.pageSize}" maxIndexPages="20"
	export="offset,currentPageNumber=pageNumber">
	共${Page.totalSize}种商品　　共${Page.pageCount}页　　当前为第${currentPageNumber}页	
	<pg:first export="firstItem">
		<img src="${ctx}/images/icon/products_pre_on.jpg" border="0" onclick="javascript:gotoPage(${firstItem - 1},${Page.pageSize});" style="cursor:pointer;" />
	</pg:first>
	<pg:prev export="firstItem">
		<img src="${ctx}/images/icon/products_back_on.jpg" border="0" onclick="javascript:gotoPage(${firstItem - 1},${Page.pageSize});" style="cursor:pointer;"/>
	</pg:prev>
	<pg:next export="firstItem">
		<img src="${ctx}/images/icon/products_next_on.jpg" border="0" onclick="javascript:gotoPage(${firstItem - 1},${Page.pageSize});" style="cursor:pointer;"/>
	</pg:next>
	<pg:last export="firstItem">
		<img src="${ctx}/images/icon/products_foword_on.jpg" border="0" onclick="javascript:gotoPage(${firstItem - 1},${Page.pageSize});" style="cursor:pointer;" />
	</pg:last>
	到第  <label><select name="select" onchange="javascript:gotoIndexPage(this,${Page.pageSize});" class="page">
	<pg:pages export="firstItem,pageNumber" >
		<logic:equal name="pageNumber" value="${currentPageNumber}">
			<option selected="selected" value="${firstItem - 1}">${pageNumber}</option>
		</logic:equal>
		<logic:notEqual name="pageNumber" value="${currentPageNumber}">
			<option value="${firstItem - 1}">${pageNumber}</option>
		</logic:notEqual>
	</pg:pages>
	</select></label> 页
	显示方式
	<img id="grid" src="${ctx}/images/icon/grid_on.jpg" border="0" style="cursor:pointer;" /> 
	<img id="list" src=${ctx}/images/icon/list_off.jpg width="18" height="15" style="cursor:pointer;" />
	排序方式
	<label>
	<select name="selSort" class="products_sort">
		<option value="1" <logic:equal name="sort" value="1">selected</logic:equal>>按默认方式排序</option>
		<option value="2" <logic:equal name="sort" value="2">selected</logic:equal>>按价格升序排序</option>
		<option value="3" <logic:equal name="sort" value="3">selected</logic:equal>>按价格降序排序</option>
	</select>
	</label>
</pg:pager>